<?php

namespace common\models\projectsummary;

use Yii;

/**
 * This is the model class for table "project_summary".
 *
 * @property integer $id
 * @property string $number
 * @property string $name
 * @property string $cname
 * @property integer $category
 * @property string $bearunit
 * @property string $amount_subsidy
 * @property integer $starttime
 * @property integer $endtime
 * @property string $proj_leader
 * @property string $proj_telephone
 * @property string $proj_summ
 * @property string $registration_form
 * @property string $bear_option
 * @property string $mana_option
 * @property string $depart_leader
 * @property string $total_appropriation
 * @property string $surplus
 * @property string $actual_item
 * @property string $paid_money
 * @property string $paid_note
 * @property string $fina_leader
 * @property string $lister
 * @property string $file_name
 * @property string $file_description
 * @property string $proj_size
 */
class ProjectSummary extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project_summary';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['number', 'name', 'proj_summ', 'registration_form', 'bear_option', 'mana_option', 'depart_leader', 'total_appropriation', 'surplus', 'actual_item', 'paid_money', 'paid_note', 'fina_leader', 'lister', 'file_name', 'file_description', 'proj_size'], 'required'],
            [['category', 'starttime', 'endtime'], 'integer'],
            [['number', 'name', 'cname', 'bearunit', 'amount_subsidy', 'proj_leader', 'proj_telephone', 'proj_summ', 'registration_form', 'bear_option', 'mana_option', 'depart_leader', 'total_appropriation', 'surplus', 'actual_item', 'paid_money', 'paid_note', 'fina_leader', 'lister', 'file_name', 'file_description', 'proj_size'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'number' => Yii::t('app', '项目编号'),
            'name' => Yii::t('app', '项目名称'),
            'cname' => Yii::t('app', '子项目名称'),
            'category' => Yii::t('app', '项目类型'),
            'bearunit' => Yii::t('app', '承担单位'),
            'amount_subsidy' => Yii::t('app', '资助金额'),
            'starttime' => Yii::t('app', '开始时间'),
            'endtime' => Yii::t('app', '结束时间'),
            'proj_leader' => Yii::t('app', '项目负责人'),
            'proj_telephone' => Yii::t('app', '联系方式'),
            'proj_summ' => Yii::t('app', '项目总结'),
            'registration_form' => Yii::t('app', '材料登记表'),
            'bear_option' => Yii::t('app', '项目承担单位意见 '),
            'mana_option' => Yii::t('app', '项目归口管理部门意见'),
            'depart_leader' => Yii::t('app', '部门负责人'),
            'total_appropriation' => Yii::t('app', '拨款总额'),
            'surplus' => Yii::t('app', '节余情况'),
            'actual_item' => Yii::t('app', '实际支出科目'),
            'paid_money' => Yii::t('app', '金额（元）'),
            'paid_note' => Yii::t('app', '备注'),
            'fina_leader' => Yii::t('app', '单位财务负责人'),
            'lister' => Yii::t('app', '制表人'),
            'file_name' => Yii::t('app', '文件名'),
            'file_description' => Yii::t('app', '文件描述'),
            'proj_size' => Yii::t('app', '文件大小'),
        ];
    }
}
